:: It is recommended to test the script on a local machine for its purpose and effects. :: ManageEngine Desktop Central will not be responsible for any :: damage/loss to the data/setup based on the behavior of the script. :: Description: Script to Configure Adobe Flash Click to run setting in Edge Browser :: Script Arguments: 1 - Enabled (Microsoft Edge will require a user to click the Click-to-Run button) :: 2 - Disabled (No Need to click the Click-to-Run button) :: 3 - Not Configured (Microsoft Edge will require a user to click the Click-to-Run button) :: Configuration Type - COMPUTER :: =========================================================================================================================== @echo off IF NOT "%1"=="" ( set param=%1 ) else ( Echo Script argument is empty. Please read the description of the script exit 1 ) if %param%==1 ( reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Security" /v "FlashClickToRunMode" /t REG_DWORD /d 1 /f goto ext ) if %param%==2 ( reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Security" /v "FlashClickToRunMode" /t REG_DWORD /d 0 /f goto ext ) if %param%==3 ( reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Security" /v "FlashClickToRunMode" /f goto ext ) echo Incorrect Argument. Please check description exit 1 :ext echo Configured Successfully exit 0